home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / dmedia / sd2.z / sd2
Encoding:
Text File  |  2002-10-03  |  8.4 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ssssdddd2222((((4444))))                                                                  ssssdddd2222((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sounddesigner2, sd2, sdII - Sound Designer II Audio File Format
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The Audio File Library currently supports eight of the commonly found
  16.      audio file formats, i.e., is able to recognize, read, and write sample
  17.      data and header information to and from files in these formats.  It is
  18.      important not to confuse _s_a_m_p_l_e or _a_u_d_i_o _d_a_t_a _f_o_r_m_a_t_s with _f_i_l_e _f_o_r_m_a_t_s.
  19.      The former refers to the bit-wise organization of the sound samples in
  20.      the file, i.e., whether the format is 8-bit integer or 16-bit unsigned,
  21.      etc.  Audio file format refers to the structure of the _a_u_d_i_o _f_i_l_e _h_e_a_d_e_r,
  22.      the chunk of on-disk data which preceeds the samples and which provides
  23.      information about the file to the audio program.  A single audio file
  24.      format may support a large variety of sample formats.
  25.  
  26.      The Sound Designer II Audio File Format (sd2) was created by DigiDesign,
  27.      Inc., as a replacement for their earier Sound Designer I format (not
  28.      supported by the Audio File Library). Because it was developed for the
  29.      Apple MacIntosh file system, this file format differs from all other
  30.      currently supported audio file formats in that its representation on a
  31.      UNIX file system varies depending on how the file is made available.  All
  32.      involve a data fork or file containing the binary sample data and a
  33.      resource fork or file containing all information about the file and its
  34.      format.  Three representations are supported:
  35.  
  36.      AAAApppppppplllleeee SSSSiiiinnnngggglllleeee FFFFoooorrrrmmmmaaaatttt
  37.           Resource and data forks are combined into a single file
  38.  
  39.      AAAApppppppplllleeee DDDDoooouuuubbbblllleeee FFFFoooorrrrmmmmaaaatttt
  40.           Resource and data forks put into separate files;  the data fork file
  41.           carries the actual file name, and the resource fork file has (in
  42.           most cases) a percent (%) character prepended to the filename
  43.  
  44.      XXXXiiiinnnneeeetttt ((((IIIIRRRRIIIISSSSSSSShhhhaaaarrrreeee)))) FFFFoooorrrrmmmmaaaatttt
  45.           Resource and data forks put into separate files;  the data fork file
  46.           carries the actual file name, and the resource fork file is located
  47.           in a subdirectory named ".HSResource".  This is always subdirectory
  48.           of the directory containing the data fork file.  In addition, a
  49.           third file named .HSAncillary contains additional "ancillary data"
  50.           about every Apple file in the current directory.  This file stores
  51.           information about the file type and file creation dates, among other
  52.           things.
  53.  
  54. DDDDAAAATTTTAAAA FFFFOOOORRRRMMMMAAAATTTT SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNNSSSS
  55.      SSSSaaaammmmpppplllleeee FFFFoooorrrrmmmmaaaattttssss::::
  56.           Two's complement integer only
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ssssdddd2222((((4444))))                                                                  ssssdddd2222((((4444))))
  71.  
  72.  
  73.  
  74.      SSSSaaaammmmpppplllleeee WWWWiiiiddddtttthhhhssss::::
  75.           16-bit only
  76.  
  77.      BBBByyyytttteeee OOOOrrrrddddeeeerrrrssss::::
  78.           Bigendian only
  79.  
  80.      CCCChhhhaaaannnnnnnneeeellll CCCCoooouuuunnnnttttssss::::
  81.           1 and 2 channels only
  82.  
  83.      CCCCoooommmmpppprrrreeeessssssssiiiioooonnnn FFFFoooorrrrmmmmaaaattttssss::::
  84.           None supported, and none in common usage
  85.  
  86. FFFFIIIILLLLEEEE FFFFOOOORRRRMMMMAAAATTTT SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNNSSSS
  87.      Sound Designer II files can contain large amounts of additional
  88.      information.
  89.  
  90.      IIIInnnnssssttttrrrruuuummmmeeeennnntttt CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnnssss::::
  91.           Maximum of 1 allowed.  Any number of loops per inst.  Insts are
  92.           stored as a set of loops with no associated instparams.  Loops are
  93.           stored as a starting frame, an ending frame, a loop sense (forward
  94.           or forward-backward) plus an index (set incrementally from 0 up) and
  95.           a channel (currently set to 0).
  96.  
  97.      MMMMaaaarrrrkkkkeeeerrrrssss::::
  98.           Any number of markers is allowed.  Unlike AAAAIIIIFFFFFFFF(3dm) and WWWWAAAAVVVVEEEE(3dm)
  99.           files, there is no direct association between markers and loops.  An
  100.           application may choose to specify loop start and end points via the
  101.           traditional AIFF-style method using mark id's (aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrtttt(3dm),
  102.           etc.) or via the newer aaaaffffSSSSeeeettttLLLLooooooooppppSSSSttttaaaarrrrttttFFFFrrrraaaammmmeeee(3dm) and related
  103.           routines.  In the former case, both the loops and the markers will
  104.           be written out to the header; in the latter case, only the loops
  105.           will be written out (unless other markers have been created).
  106.  
  107.      In addition, it is possible to associate both a name string and a comment
  108.      string with each marker.  The routines aaaaffffIIIInnnniiiittttMMMMaaaarrrrkkkkNNNNaaaammmmeeee(3dm) and
  109.      aaaaffffIIIInnnniiiittttMMMMaaaarrrrkkkkCCCCoooommmmmmmmeeeennnntttt(3dm) will do this.  Both the name and comment will be
  110.      written into a text buffer with the format <marker name>: <marker
  111.      comment>.
  112.  
  113.      MMMMiiiisssscccceeeellllllllaaaannnneeeeoooouuuussss CCCChhhhuuuunnnnkkkkssss::::
  114.  
  115.                AAAAFFFF____MMMMIIIISSSSCCCC____CCCCOOOOMMMMMMMMEEEENNNNTTTT         text comment string
  116.  
  117. CCCCAAAAVVVVEEEEAAAATTTTSSSS
  118.      Due to the nature of the file structure as described above, the Audio
  119.      File Library must take extra steps to identify and read this format.
  120.      Specifically, it must have the full pathname of the file available for
  121.      the call to identify the file (if used) and the call to open it.  The
  122.      functions aaaaffffIIIIddddeeeennnnttttiiiiffffyyyyNNNNaaaammmmeeeeddddFFFFDDDD(3dm) and aaaaffffOOOOppppeeeennnnNNNNaaaammmmeeeeddddFFFFDDDD(3dm) exist for this
  123.      purpose, as well as the usual aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm) call.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ssssdddd2222((((4444))))                                                                  ssssdddd2222((((4444))))
  137.  
  138.  
  139.  
  140.      The current version of the AF can read Sound Designer II files in any of
  141.      the above-three file representations, but all newly created files will be
  142.      written in Xinet representation only.  Future releases of the AF may
  143.      allow a choice.
  144.  
  145. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  146.      afInitFileFormat(3dm), afGetFileFormat(3dm), afIntro(3dm),
  147.      afIdentifyNamedFD(3dm)
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.